﻿<Page
    x:Class="Pear.Exchange"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Pear"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

    <Grid x:Name="LayoutRoot">

        <Grid.ChildrenTransitions>
            <TransitionCollection>
                <EntranceThemeTransition/>
            </TransitionCollection>
        </Grid.ChildrenTransitions>

        <Grid>
            <Grid.Background>
                <ImageBrush Stretch="Fill" ImageSource="Assets/HubBackground.png"/>
            </Grid.Background>
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="9*"/>
            </Grid.RowDefinitions>
            <Canvas Grid.Row="0" Background="#FF979393">
                <TextBlock x:Name="nickname" Text="Hello World" Canvas.Left="20" Canvas.Top="30"/>
                <Image x:Name="link" Source="" Canvas.Left="60" Canvas.Top="30"/>
            </Canvas>

            <Grid Grid.Row="1">
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                
                <ListView x:Name="xMsg" Grid.Row="0" ScrollViewer.VerticalScrollBarVisibility="Visible">
                </ListView>

                <Grid Grid.Row="1" Background="Black">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="6*"/>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Image Grid.Column="0" Source="Assets/Circle.png"/>
                    <TextBox x:Name="SendText" Grid.Column="1" VerticalAlignment="Center" 
                             PlaceholderText="please input" FontSize="16" Margin="10,0,0,0" 
                             AcceptsReturn="True"
                             Paste="SendText_Paste" TextChanged="SendText_TextChanged" />
                    <Image Grid.Column="2" Source="Assets/Circle.png"></Image>
                    <Image Grid.Column="3" Source="Assets/Circle.png"></Image>
                </Grid>
            </Grid>
            
        </Grid>
    </Grid>
</Page>
